#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
     this->setFixedSize(1000,700);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_2_clicked()
{
    close();
}


void MainWindow::on_pushButton_clicked()
{
    this->hide();
    game *videodlg = new game(this);//新建子界面
       connect(videodlg,SIGNAL(sendsignal()),this,SLOT(reshow()));
    videodlg->show();
}


void MainWindow::reshow(){
     this->show();
}

